﻿{include file="header.tpl"}

<form name="faqReorderForm" id="faqReorderForm" action="" method="post">

<input type="hidden" name="action" id="action" value="{$formAction}" />
<input type="hidden" name="operation" id="operation" value="reorder" />

<table class="default">
	<thead>
		<tr>
			<td width="10%">Posición</td>
			<td>Pregunta</td>
		</tr>
	</thead>
	<tbody>
		{if is_array($data)}
			{foreach $data as $row}
				<tr class="{cycle values='odd,even'}">
					<td class="middle">
						<input type="text" name="positions[{$row.id}]" value="{$row.position}" class="textfield reorder" />
					</td>
					<td>{$row.question}</td>
				</tr>
			{/foreach}
		{else}
			<tr class="odd">
				<td colspan="2">{$data}</td>
			</tr>
		{/if}
	</tbody>
</table>

<div class="right-column clear align-right">
	<br /><input type="button" id="saveButton" name="saveButton" value="Guardar" class="submitbutton" />
</div>

</form>

{include file="footer.tpl"}
